<% if object.errors.any? %>
	<div id="error_explanation">
	<div class="alert alert-danger">
		表单填写有误
	</div>
	<ul>
		<% object.errors.messages.each do | msg| %>
			<li><%=h msg[1][0].to_s%></li>
	<% end %>
	</ul>
</div>
<% end %>
